Nope, I can't return HTTP 500 'cause this is not something that happens while an HTTP request is being processed.

What we could do is restart the server instead of crashing but in this case that wouldn't help at all (it would obviously just crash again).