Updated error handling on alerts; turned off debug for deployment