Respond with 500 when there's an error