Fix error cleanup in log slot initialization.