add some exception handling; manager now send multiple shutdown messages at once.