Verify database has been closed and ensure re-opening