Added a catch to stop syntax errors from 500ing. Now they 400 :)