Add test to check asyncproc doesn't fail on exit