If Instant Complete is turned on before or while in a level, the level closes out and it does not get completed, unless Safe Mode is on, where the completion won't count.
https://drive.google.com/file/d/1b4nrG-Z7gmW360dxl7klt9zSjRipP_YB/view?usp=drivesdk