MasterResource: return a message on successful shutdown

Fix #636