Try creating the server earlier in the process