freeSpaceMgnt shutdown bug corrected
merging branch created by ham with freeSpaceMgnt shutdown bug corrected branch