[5.0] Restore abort method on Foundation/Application

There should be a return annotation.