Enure more options of closing the ha server instance