fixed issue with sol files being smaller than mins
added volatile to var that was blocking quit on windows