Make CloseInput virtual (e.g. for decorators)