Remove listeners on end