install.py: solved error with string conversion on port and fixed exception handling.
install.py: solved error with string conversion on port and fixed exception handling.

datasoftsrl/ssh-poweroff,datasoftsrl/ssh-poweroff,datasoftsrl/ssh-poweroff