disable debug signing, set version properly, close app when window closes