Application opens tcp port and when I restart it I see the error that app cannot bind port This happens only if hosts were connected to it. If there are no connections app restarts without error. Looks like Wine (or may be systems) keeps the socket and its connection opened even app closed the port. Next time app can open the port again only 10-15 minutes later. Is it possible to fix?