Sending quit command upon service closing