Change Connection closing to only leave open if explicitly opened, otherwise it will be closed after every command.