extend confirm script to handle quit or shutdown