logging stderr properly for promise unhandledRejections