Make sure AMs are dropped when routing fails.