Error handling for communication failures.