Closing connection for all operation : manage auto expire