Pipeline monitor pleads guilty to safety failures in spill