Attempts to halt all tasks and returns unfinished tasks.
Calling `shutdownNow()` on an ExecutorService attempts to stop all actively executing tasks and halts the processing of waiting tasks. It returns a list of tasks that were awaiting execution. This might leave tasks incomplete, which can be risky if tasks are critical, such as saving transaction data during a flash sale.