Debugged error handling message passing