Added better timeout and error handling during scsi rescan and getWWWN.