Better error handling, added PHPStorm directories to gitignore