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

@SirVer 
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.