close temporary connection
close previous connection