Added Close functions to services