Proper closing of maintenance