before stop-download implement