add sql_client.disconnect in main function