Shut the application down from inside before killing the process.
javadoc.
Expose the computational executor.
Javadoc.