improve download library dialog
fixed system shutdown problem