Change exit handling to resemble normal run

Instrumented processes now exit in the same way as normal processes.