JShell.Subscription
onShutdown(Consumer<JShell> listener)
onSnippetEvent(Consumer<SnippetEvent> listener)
void
unsubscribe(JShell.Subscription token)