Fixed an issue where the system would lock up while trying to Connect to the database and fail to connect.