Separate method to create bluetooth socket and connection exception handling.