Avoid use of __METHOD__ in closures.

Change-Id: If633400bc915e3e0582d420826c30761678f4878