[5.0] Restore abort method on Foundation/Application

This should be above the previous import.