Return 500 error on debug exceptions.