Quit WebApplication with return value / on crash

I’m trying to setup a monitoring for an standalone WebApplication on OSX. Apparently, the process always returns with an Exit Code / Return Value of 0, even if the application crashed with an App.UnhandledException. I tried to enter Quit(1) in the UnhandledException handler but that optional parameter for the status code seems to be supported for ConsoleApplications only (though WebApplication is a subclass of that). Is there any way (or feedback ticket to subscribe) to get an return code indicating an error if the App quits / crashes?