Fix for deleting active sessions and stop event propagation.