Rescue during error logging to prevent channel close