tidy up codes; [bugfix] temporary files won't be cleared if network callback block returns early
tidy up codes; [bugfix] temporary files won't be cleared if network
callback block returns early

qskycolor/JSPatch,bang590/JSPatch,bang590/JSPatch,bang590/JSPatch,rob2468/JSPatch,bang590/JSPatch,chieryw/JSPatch,chieryw/JSPatch,rob2468/JSPatch,chieryw/JSPatch,bang590/JSPatch,ipinka/JSPatch,albert438/JSPatch,ipinka/JSPatch,chieryw/JSPatch,albert438/JSPatch,ipinka/JSPatch,ipinka/JSPatch,rob2468/JSPatch,ipinka/JSPatch,chieryw/JSPatch,qskycolor/JSPatch,rob2468/JSPatch