My app crashes when I leave the frame that uses the Bluetooth extension. This happens after a successful transfer is done and the connection is closed.