Shutdown appium node remotely

Hi,

My goal is to shutdown Appium node (connected to selenium grid) remotely, usually for regular selenium node I’ll write a custom servlet to do such a thing.

How should i do it on Appium?

Thanks