Add UnrefAndCloseConnection