Fixed an issue relating to unsetting MySQL connection vars if the connection was already established.