Add close event to menu