Fixed non-zero return when unmapping last window