Fixed non-zero exit code exception - now it doesn't print stack trace