Avoid usage of too general exception
Add gitignore file