Convert the COMM object to a shared pointer

refs #4009