Add *.plt to gitignore
Handle errors better