IMDTouchKnowledge BaseShop main store

Troubleshooting

WinCC runtime stays open after project deactivation on shutdown

HMI and touchscreens Published 6 min read

Short answer

Deactivating a WinCC project stops runtime but does not close the SIMATIC WinCC RT and SIMATIC WINCC PROJECT windows that autostart opened, so Windows shutdown finds running applications and asks you to force them closed. Prove the close sequence by hand once — stop the project, then exit the remaining application — and configure the exit button to run both steps, in that order, per your installed release.

On this page
  1. Deactivation stops the project, not the applications
  2. What the exit button actually executes
  3. Prove the close sequence by hand first
  4. Worked example: the autostart PC with two windows left open
  5. Configure the exit action to run both steps in order
  6. Autostart, the tray icon and a runtime that comes back
  7. Questions asked

Deactivating a WinCC project and closing the application are two different operations, and an exit button that only does the first leaves windows behind at shutdown. When the project deactivates, runtime stops, but the SIMATIC WinCC RT window and the SIMATIC WINCC PROJECT window that autostart opened stay open, so Windows finds running applications and asks you to close them manually or force them closed. The fix is to run the full close sequence by hand once — stop the project, then exit the remaining application — confirm every window closes, and then configure the button's exit action to run both steps in that order, using the close functions your installed WinCC release documents. Windows then has nothing left to flag and shuts down without the force-close prompt.

Deactivation stops the project, not the applications #

Runtime is the execution environment that displays the screens and runs the project functions. SIMATIC WINCC PROJECT and SIMATIC WinCC RT are the applications around it. Stopping the project ends what runtime does; it does not, by itself, close every window autostart started, so a vanished operator picture is not proof that every WinCC application has terminated.

Windows shutdown asks each running application to close. One that has not completed its close request — still processing, waiting on a hidden dialog, or holding an open project — is what produces the prompt to close it manually or shut down anyway. Forced termination bypasses the application's normal completion path, which is where pending writes and cleanup are handled, so treat it as an exceptional escape, never as the daily way off the machine.

Read the actual state from the desktop before touching the button:

  • The operator picture closes and nothing else changes: the configured action ran; count what windows remain.
  • The project deactivates but SIMATIC WinCC RT and SIMATIC WINCC PROJECT stay open: deactivation without application exit — the reported case.
  • Windows asks to force close or cancel: at least one application has not completed its shutdown request; find it before editing anything.

What the exit button actually executes #

A button labeled Exit describes an intention, not a behavior. Its press event can close a picture, deactivate the project, call a script, or chain several actions in sequence. Open the screen in the project's configuration environment and read the event assignment as it is actually configured. If the event holds only a deactivate call, that alone explains the report: the project stops, the windows stay.

The documented VBS call for stopping runtime is HMIRuntime.Stop. Read it as a runtime stop, not as a guaranteed close of every application and not as a Windows shutdown command. The application-exit step your installed release documents belongs in the same sequence, after the stop, and its exact function or setting comes from the documentation for your edition and version — not from a generic script found elsewhere.

Prove the close sequence by hand first #

Run the sequence manually on the PC itself before automating anything. That separates a missing button action from a close failure inside the application, and the bench habit — exercise the real project and its real exits on the real machine — is the same one behind proving a PC-based HMI before replacing panel terminals.

  1. Press the existing exit button and record which windows remain open.
  2. Stop the project through its normal control, or from a test script that calls HMIRuntime.Stop, and watch the SIMATIC WinCC RT window close. Note any confirmation prompt and what it expects you to answer.
  3. Close the remaining SIMATIC WINCC PROJECT window through its normal exit control.
  4. Check Task Manager: no WinCC application should remain listed as running.
  5. Shut Windows down from its own menu and confirm it completes with no force-close prompt.

If every step reaches its expected end state, the button is simply missing steps. If a step stalls, note which window stops closing and answer the dialog it is waiting on before you conclude anything about the installation.

Worked example: the autostart PC with two windows left open #

This works the reported case: autostart brings the project up at boot, the exit button deactivates the project, and two windows remain on the desktop.

Inputs:

  • Windows open after the exit button: 2 — SIMATIC WINCC PROJECT and SIMATIC WinCC RT, as reported on the operator PC and confirmed in Task Manager.
  • Steps available: stop the project with HMIRuntime.Stop, then close the remaining application through its documented exit; each step is expected to remove one window.
  • Pass criterion: 0 WinCC windows open at the moment Windows shutdown begins.

The rule: count how many windows each step removes and subtract them from the open count; the sequence passes when the windows open after the last step come to zero.

Arithmetic: 2 open − 1 removed by HMIRuntime.Stop ending runtime and closing the SIMATIC WinCC RT window − 1 removed by the application exit closing SIMATIC WINCC PROJECT = 0 open.

Result: zero WinCC windows when shutdown starts, so Windows lists no application and posts no force-close prompt.

Decision: if your bench run matches this count, configure the button to chain the two steps in that order. If the count stops at 1 because the project window stays open, the button is missing only the application-exit step. If HMIRuntime.Stop alone removes nothing, the installed release stops runtime differently, and the close sequence has to be read from that release's documentation before the script is written.

Configure the exit action to run both steps in order #

Give the button the documented sequence: stop the project first, exit the application second. Order matters, because an application close issued while deactivation is still in progress can fail, so the steps are chained, not fired together. Do not replace the sequence with a process-kill call, and do not enable a Windows setting that automatically closes hung applications at shutdown; both convert an abnormal exit into the normal path.

If the shutdown is not an operator's choice but a UPS driver reporting the battery is nearly spent, use the vendor's tooling for it: the WinCC UPS shutdown tool, version 2.0, is documented to close the active WinCC project and shut the PC down from a UPS signal. Do not race that window with a self-made script.

Autostart, the tray icon and a runtime that comes back #

Autostart opened these windows at boot, so startup configuration belongs in the check. A second launcher or a supervisory restart can make a successful exit look like a failure, because a window reappears after you closed it. List the startup entries and change only ones whose purpose you understand. The same start-up mechanism is what brings the runtime up on its own at boot — including when it is set to run an HMI application touch-only in forced full screen — so removing launch entries wholesale can delete behavior someone configured deliberately.

The X on the WinCC notification-area icon is a status indication: the project is shown as inactive, the expected state after a clean deactivation, so the icon by itself diagnoses nothing. The combination that points at a fault is an X that never clears together with runtime refusing to exit even when you close it manually — that points at the installation itself, and a repair with the vendor's installer is justified after diagnostics, not as a first move.

Finally, separate the lifecycles. WinCC background services are long-lived by design, and a service still running after the windows close is not evidence the operator application failed to exit. Judge the exit by the application windows and Task Manager, not by services.

Questions asked

Does HMIRuntime.Stop close the project window too?

HMIRuntime.Stop stops WinCC runtime from a VBS action. It is a runtime stop, not a guaranteed close of every application window and not a Windows shutdown command. Expect the SIMATIC WinCC RT window to close with runtime while the project window follows the behavior your installed release documents, which is why the sequence is proven by hand before the button is configured.

Should the exit button also shut Windows down?

Only if operators are meant to power the cell off. Exiting runtime and shutting down are different duties: an exit button ends the applications and leaves Windows running for engineering work; a shutdown button runs the same close sequence and then lets Windows power off. Keep them separate so a shift change does not power down a machine that should stay on.

Windows still prompts after the button runs both steps — what now?

Then something outside the two steps is holding a close request: a hidden confirmation or error dialog, a second launcher, or an application outside WinCC. Bring every WinCC window to the foreground and answer any dialog, check Task Manager for what Windows actually lists, and treat the named application as the one whose exit step is still missing from the sequence.

Does closing a WinCC Professional client stop the server project?

No, and that is documented behavior, not a fault. Closing runtime on a client closes that client's runtime while the server project keeps running for the remaining clients. In a client/server system, server runtime staying alive after one client exits is expected; only the operator stations you actually shut down need the full stop-then-exit sequence configured.

Does the fix change on a restart instead of a shutdown?

A restart sends the same close requests, so the same prompt appears and the same fix applies. The difference is what comes after: on a restart the autostart brings the project back up, which is the configured behavior and not the exit failing. Judge the fix by whether Windows stops asking you to close anything, not by whether the project returns.

Keep reading

  • Comparison

    Choosing Free Modbus HMI Software for a Windows Panel PC

    For a Windows panel PC that must show Modbus TCP data and alarms, Ignition Maker Edition and VTScada Lite are the only candidates with a free tier and a specific Modbus TCP claim on record. Maker Edition is documented free for non-commercial use only, so production machines bench-test VTScada Lite first or fall back to code-based AdvancedHMI.

    HMI and touchscreens

  • Selection guide

    Running an Ignition Vision Client as a Machine HMI Without Edge

    No Edge license is needed. A Vision client at the machine is one more client session of your existing on-site gateway, so the only check is whether that gateway's license counts clients. Edge is a separate device-level gateway for machines that must keep running with the site link down; your panel HMI stays as the OPC UA server either way.

    HMI and touchscreens

  • How-to

    Run a TIA Portal V14 HMI on WinCC Runtime Advanced

    Compile the HMI for its configured WinCC RT Advanced target, transfer the compiled application, and select it in RT Loader. Match the configured device version to the runtime installed on the workstation. Verify Windows support and use a valid runtime license sized for the application.

    HMI and touchscreens