Clean up time layer and timer service at close.