(cherry picked from commit 32258af87be39994baca95aa92cb5565ee69571a)
* use --port 0 to avoid p2p port conflicts * use --maxpeers 0 so it doesn't connect to bootstrap nodes * use geth.expectExit() to wait for termination (cherry picked from commit b57b6e341e3865de3b3a5aa108e642d1a6a5b590)
(cherry picked from commit ffaf58f0a98bd987bbe76e8669bb22c405dcd62a)