after sending msg, exit