added support for termination of virual machines