wait_on_ipc_connection() to look at shutdown flag first.