use exception handling to detect in-use ports ([Errno 98] Address already in use) and skip them
[Errno 98] Address already in use