FIX: Fix initialize events

This ensures that we always get `initialize` and `close` events. Before some backends had these events, others didn't. Now they all should. Ready for review/merge.

Closes #331.
This actually works in all backends now :)