Don't leak like crazy in case an exception is thrown.