Revert "the main thread needs to abort too... (doesn't it?)"

This reverts commit c83072386135b385029159fb50c93640996c529d.
Revert "Revert "the main thread needs to abort too... (doesn't it?)""

This reverts commit 8f4afe64e1227b1add4c4d764abcfde987f7d605.
dont leak file descriptors in case of socket error after creating the socket(); print the current pid in the FORMAT messages