fix web service close