emit the event before restarting the block