- Implemented error handling for protocol mismatch
- Error handling tweaks and fixes
- Removed debugging messages