+ Uses bash coproc and wait keywords + Fix issue pointed in e8c3ca59, i.e. when the script exits, everything is now finished.