Ensure mysql connection is dead on proces exit