Additionally, don't run callback if the shutdown_event is set