add finalize and quit to comm.stop()