Fix error-catching bug; send correct status codes
Catch edgecase (running exec without a pipeline)