added reset default proxy support in finally statements