Added default timeout of 5s when connecting