Throws exception if the component is not able to connect.