[fix] Close the server with a try/catch to prevent thrown errors when the server isn't started.