Check for closed DB connection and auto reconnect is necessary