Add safety check in prio work queue