Updated BluetoothServer

If you stop the server the mainclient will be removed as mainclient.