I don't think you can do that. Most LV programmers remove the Abort button from deployed applications to prevent exactly that situation. Think of the Abort button as an escape hatch for the programmer. For the user place a Stop button on the front panel and execute your shutdown code before quitting. The shutdown code can reset controls to default, restore I/O ports and DAQ devices to known, safe states, close files and references, etc.
Lynn