Change handling of server calls so that we don't use a Semaphore to lock the main UI process.