Gives the user the ability to find out whether the service is being shutdown in order to avoid executing nodes after calling shutdown on it.
Merge pull request #219 from pedrolf/master

Gives the user the ability to find out whether the service is being shut...