Make isup entirely local

Opens a socket, checks for errors, closes the socket neatly.
Merge pull request #19 from blha303/patch-1

Make isup entirely local