I'm trying to remove the memcached package and when I run the command:

zmprov gs 'mail.server.com' -zimbraServiceInstalled memcached

I get this error:

[] INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused
[] INFO: Retrying request
ERROR: zclient.IO_ERROR (invoke Connection refused, server: localhost) (cause: java.net.ConnectException Connection refused)

I have just performed an upgrade from 7.0 to 7.2.5 and have been unable to get it back up and running. Any ideas as to why I can't remove this?