fixed 3.2 issues
added Puppet::Error to require poll