Shutdown after Print

Hi

I like to shut down the RaspberryPI after a Print Job is ending. Anyone have see a solution for this?

My Printer cut the Power after ending but how i can handle the PI? I have try it with a PIUSV but its don’t work with Astroprint.

Thanks