Handling errors in receive channel