Crash closing the connection editor window while it is not a sheet