XBT_INFO("Waiting for sends to finish before shutdown...");
while (xbt_dynar_length(p->pending_sends) && MSG_get_clock() < end_time) {
process_pending_connections(p->pending_sends);
XBT_INFO("Waiting for sends to finish before shutdown...");
while (xbt_dynar_length(p->pending_sends) && MSG_get_clock() < end_time) {
process_pending_connections(p->pending_sends);