Gracefully Shutting Down Webclient?

I know you can do this via the server admin page, but how can you do this from a method? According to the documentation, you can manually end a SHC session by using session.setAttribute(“servoy”, null). How can I similarly end a webclient connection?

application.exit()
:)

That’s it?!? :? For some reason I thought that was reserved for smart clients.

::hanging head in shame:: Thanks