Moved valuable operations out of catch blocks.