remove events before exit

Change-Id: I44ec1eb57d962986c682033a32b4100a234481f5
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>