Fix for some erroneous error and status logging.