Exit script using last call's exit code.