Close database when events were not found