end of message inbound handler