This is a quick patch for something that keeps bothering me during testing. Namely, terminating servers mid-recording crashes ACQ because it doesn't first try to stop recording. This tends to happen when a bug from my untested code crashes STM.
Side note: servers should really be an object to better handle all the associated state information (device manager, logger, etc...). But will leave this refactor to the server rework.
This is a quick patch for something that keeps bothering me during testing. Namely, terminating servers mid-recording crashes ACQ because it doesn't first try to stop recording. This tends to happen when a bug from my untested code crashes STM.
Side note: servers should really be an object to better handle all the associated state information (device manager, logger, etc...). But will leave this refactor to the server rework.