Added support to close services on older OSs.