Here's the method being called: https://developer.apple.com/library/mac/#documentation/AppKi...
From the docs, "attempts to quit the receiver normally." I'm not sure why ensorcled's terminal was closed while a process was running, but I get prompted to confirm closing terminal when a process is running.