added reset function

reset to close connections