support for closing windows from server...unicode to widestring and back support