Under Linux, if you attempt to call BluetoothLowEnergy.registerProfile when the nRF52840 dongle isn't connected, the simulator crashes with no explanation. Now obviously without the dongle connected you're not going to be doing any useful BLE development...