synthesize close event