Fixing the bug: AWS nodes were not getting refreshed. Instead it was throwing NullPointerException.
So Added missing ExecutorService object