add log for uncaught error to pervent node js from crash