Patch update for 4.9.9.

Fixes a few bugs related to errors in logs.