Flush log buffers if HostFactory.New or HostFactory.Run throw exception
Merge pull request #201 from solyutor/flushbuffers2

Flush log buffers if HostFactory.New()/Run() throws an exception.