Fixing isolate system messages.

The `onEvent` now takes a partial function.