Remove event handler after no longer needed