Changed all log.Fatal to return errors instead

Hi there, we're using your library as a long running application, so log.Fatal() causes our whole application to stop. This pull request changes the log.Fatal() to return errors instead.