Changed scope of method CoreService.cleanup() to public.