Add .htacces, make try catch so that error can explicit on the browser

That is bad because it can potentially be displayed to the user.