Proper uninitialization of form during release

I think this will fixed it for every case e.g. on autorelease, but also for manual release. Sorry for bad previous PR.