Adds timeout while waiting for puppetdb to listen