Fixed thread private issue with OMP
Fixed all statepoint files not being deleted.
Fixed all statepoint files not being deleted, and deleted temp files.