Adding a 'open' and a 'close' event

Thought it was missing so here it is.