Fix #5: mount the application and return proper error when rendering error templates.