Remove events on close