cleanup xhr request when upgrade in order to avoid smartphone's indicator to keep running