removed event listener in device destructor