Fixed dameonize stdio redirection
Refactored to use winston logging