fix(dbaas.mysql): do not close the connection on failure

The agent crashes on an error from mysql because the connection is closed. With this patch the other SQL queries are ran and aggregated.