Corrected a bug preventing exceptions from being caught.