New approach to capturing exit code.