send_sync_message to deal with errors