fix: receiving message, connection error handling, etc.