Ensure that Server response handlers are executed in main thread