It rather depends what you want to happen when you press the abort button. I have used the following method to do hardware shut-down after the abort button is pressed during debug.
Simply stated you launch a watchdog VI that waits on a queue when you press the abort button on the main VI this makes the queue invalid so that the error causes the loop to end and any code following the loop to be executed. See the example attached.
Example.zip