Catch errors
Clear console
Merge pull request #2 from AntonTrollback/master

Cache errors and clear console