Hi ftherrmann,
most complex applications need some time for cleaning up when closed. After the window is closed the process spends a little time closing files and network connections, freeing memory, saving preferences, removing temporal files, etc. PixInsight takes more time doing this than other applications, but, at least in my computer, it is only a few seconds.