add finishReceivingMessage. ref #172