Cleaning up messages.