Added fix in BaseUIAutomationCommandExecutor to escape unnecessary thread block when stop called during registration.

Added fix in BaseUIAutomationCommandExecutor to escape unnecessary thread block when stop called during registration.