Wipe the tmp folder on close #188. Also removed some stuff from gitignore.