added console.log on exception