updated boostrap.cs to catch all exceptions, so that stacktrace preview can be used