kill and remove the cgroups on exit
no error on removing non-existent cgroups
not closing the pipes here prevents some data loss

Otherwise if the cloned process exits too quickly the pipes are
destroyed and the program with suffer data loss or other strange
behaviours.
Fix an error message and better usage