it removes all attached listeners