Add a debug-mode flag
Throw a HTTP 500 back to clients if the main ob is somehow empty at the end