close #11 and #9 send errors back to client