Added uncaught exception handling. Minor html fix.