Give Ham custom error handeling

onError(function(){}), now lets the user define their. With an option second parameter for error-logging.