Fixed segfault on exit in ICP
gitignore in examples