The compile_page method (user-triggered via HTTP/WebSocket) calls
self.compiler.compile_page() without try/except. If the compiler throws,
the page status is left in GENERATING permanently — same bug as _worker_loop.
Added exception handling that resets page status to ERROR on failure, then
re-raises so the caller still sees the error.