https://unix.stackexchange.com/questions/344360/collect-exit-codes-of-parallel-background-processes-sub-shells/436932#436932