Properly decode incoming close code