Removes event handlers upon dispose