fixed bug where bluetoothserversocket was closed twice from different threads