add error recovery to send, note also needs update in middleman
app now attempts a connection on startup with last used settings
little cleanup