Fixed stack traces not printing out on error.