async def websocket_close(self, message, stream_name):
if stream_name in self.applications_accepting_frames:<EOL><INDENT>self.applications_accepting_frames.remove(stream_name)<EOL><DEDENT>if self.closing:<EOL><INDENT>return<EOL><DEDENT>if not self.applications_accepting_frames:<EOL><INDENT>await self.close(message.get("<STR_LIT:code>"))<EOL><DEDENT>
Handle downstream `websocket.close` message.

Will disconnect this upstream application from receiving any new frames.

If there are not more upstream applications accepting messages it will then call `close`.