* correctly shutdown embedded bcoin instance * wait until bcoin is listening on P2P before trying to connect * align bcoin port and peer port