Fixed aborting in case of receiving garbage from server