add & fix

add: close connection/fd
change: the vars from class vras to temp vars