revised temp folder and file handling - they are deleted in all cases, the IDE is ended normally

Cases where the JVM is terminated abnormally (e.g. process kill)
artefacts might remain in temp folder