Listen to Close Call

API 2.0

Touch Portal will send a message when it is closing the plugin for some reason. Touch Portal will also try to close the process. This will happen approximately after 500 ms. This will only happen if the process is being started through the start command attribute. This means that if this close call is received, be sure to properly shut down the plugin application/service otherwise it may be hard killed by Touch Portal.

  "pluginId":"id of the plugin"