disable window Close (workaround for #1)