Set error message content type to text/plain
Fix crash due to multiple timerfd's that weren't stopped
Send Content-Type according to the suffix