Log exceptions in sendResponse and handleMessage