Detach listener while component unmount