process->kill is provided as a absolutely last resort to try and kill a process that isn't responding. You shouldn't use it for normal operations. When the user presses 'Stop', send a signal to the process to quit normally, and then you will not get an error signal.
Bookmarks