In event loop, delay event handler deletion to the end of the loop

Change-Id: Ic46772395c1cbfc0bcbb95ac607883aa6c8c86f1
Signed-off-by: Or Kehati <ork@mellanox.com>