remove container once shell stops to avoid leaks