Added shutdown hook to unset proxy settings