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.
Got it; I think this is the correct solution.