tests/vm: add shutdown timeout in basevm.py