I am trying to write the below code, and I want it to display the error before it exits, but whenever I run it, it exits right away.

```
@echo off
cd "haha"
if %errorlevel% 1 (
   echo Failure reason given is %errorlevel%
   sleep 5
   exit /b %errorlevel%
)
echo files deleted successfully!
del /Q *
pause

```

I have also tried `timeout /t 5` doesn't seem to work.