Cancel any scan or pending confirmation, close any active BLE connection and return to the initial state.