Use a deprecated shutdown method until a better way is found.