Return exit code returned by application