Update canExit config to use plugin default.

Fix some comments.
Use custom TerminatedError type for sandbox_filter