The going offline could be due to the version of Tasmota you’re running. There were some versions released with a core library that was kind of buggy. See this thread for details:
Incidentally, a new release of Tasmota just came out today and they reverted back to the solid version of that buggy library.