Introduce continue_after_exec

This needs to be handled differently on non-Linux platforms.