Clean up vm at exit