Updated detection of mysql connection and closing.
Updated version number.