Fixing local server output hanging