HH-45061 backport write_error from tornado3
Merge remote-tracking branch 'origin/HH-45061' into EXP-11925
release 2.0.0+hh20 [an.sumin@hh.ru]