room should be nil
Flush stdout on error