IDEA-128944 reusing build process
(cherry picked from commit a33d89a)
gc after build
cleanup
destroy process on project closed
destroy process on project closed