add a child killer to dock

adding a child killer everywhere.
also added new API to run child killer incase we need to do a cleanup before docker close.