[FIXED JENKINS-23481] Send onOffline notification to master computer prior Jenkins restart

https://issues.jenkins-ci.org/browse/JENKINS-23481
Not sure, this mimics the behavior before the listener was introduced.