Support for animated close.