Added close event.