Add some exception handling. May or may not be a good idea
Add logging, mainly of configuration data, so I could try to figure out what on earth was going on
Improved exception handling. Log to database, with a timestamp