Allow longer keys to keep connection alive and send correct CLIENT_ERROR to client