flush message after sending