Cleans up some event binding.