made destructor of event nonblocking