Added logic to wait for a manager to restart and be active enough to
respond to an 'ls datasource' command.