code: def _patch_tcpserver():
      
      shutdown_request = TCPServer.shutdown_request
  
      def shutdown_request_patched(*args, **kwargs):
          thread = current_thread()
          shutdown_request(*args, **kwargs)
          if thread in _exc_cache:
              post_mortem_interaction(*_exc_cache.pop(thread))
  
      TCPServer.shutdown_request = shutdown_request_patched
docs: Patch shutdown_request to open blocking interaction after the end of the
      request