Adding some more error checking just in case someone is using this gem with a bluetooth-to-serial adaptor.