Fix the bug that the NodeRunnable is not removed after simulation
completes.
Add P2P script for demo.