Adding logging support if we have uncaughtexception or serer exits, still need to implement winston