improve close_event_spec