return error on connection timeout