cancel timeout before invoking callback.onException