error catch in sendResponse to prevent silent deaths