Fixed close event