Sounds complicated. I just use autossh from the CLI and it reconnects if my laptop (or the remote machine) wakes up again.