Fixed #19905 -- Fixed leakage of file descriptors in form wizard.