Reducing proxy shutdown time