Putting back stop on program exit