Update error catching for exception