added exception handlers for graceful render