fixes for improving killing services and for opencv_stdc++ issues