Updated code for exiting the test execution, if any of the component failed to connect.