Made gotty a bit more robust

Now gotty does not exit on errors but simply tries to reconnect.