How to close active machine session?

I have recently cope with a problem that was existed on Pennyworth machine. Can someone tell me how to stop current active machine ?