Bug fix: check if vos is still active before attempting anything.