wait on wallet scan in unit ArmoryDTest
proper shutdown in offline mode