catch api request timeout exception.