Added extra error checking for the BT connector