Sort by priority
Catch error when a pm_master is no longer in current