Set status to 500 on exception