remove event handlers when layer is removed