Release event handlers

Although I don't think they are the cause of memory leak, but for the sake of proper cleanup, release them. 

@Benglin please help to review the change.