Implement unbind() function to remove handlers