Add returncode and meaningful output when Exception occurs