Add check for device not found

Change device retry strategy

Added timeout and stdout check

Small fixes

Added error message

Error fix

Spacing Fix