fix master failure on workers stopping, fixes #3