allows removing event during event callbacks