Refactor check_closed_event for multiple events