// Setting the server of the server to 'stopping'
server.setState( ServerStateEnum.STOPPING );
// Getting the launch job
LaunchServerJob launchJob = server.getLaunchJob();
if ( launchJob != null )
{
// Getting the launch
ILaunch launch = launchJob.getLaunch();
if ( ( launch != null ) && ( !launch.isTerminated() ) )
{
// Terminating the launch
try
{