sql editor now closes on database dosconnection