Drain events only when stop loop was called

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