add close, error, request timeout handle #5