run_xp_peers modified with shutdown_callback