Fix check for bundle task completed state
Move san connection to san client