Kill spawn on completion and error in getBuffers.