Added catching timeout exception.