Add additional logging to find out why getMessage() returns null.