Added isTerminated check
ignore intellij files