We need to handle close event