Added a few more error conditions and properly sent them as Error protocol messages to the client.