Added error handling via errors package

Now should notify via std error if the status codes are errors etc.
Hopefully this should be good enough for cron.