fix failing recursive removeUnitAfter calls not causing the caller to fail