Fix URL and MySQL connection deaths