Added some error handling

Connection Refused error when pairing
Invalid pairing code if pairing code malformed
Added two error handling classes.