improvements to promises rejection logging
merged master