When error happens on socket, potentially dead socket is kept open indefinitely by calling "connection.end()". Similar issue is that it keeps socket open until long-running query is finished even though the connection was ended.
* First crack at monorepo * Update test command * Update path to script * Remove node 6 from CI