Fixed mysql_close call