error handling for mcc log