Cleanup printed messages.