Device resetting upon server or device restart