code: @Override
  	public void terminateMachine( TargetHandlerParameters parameters, String machineId ) throws TargetException {
  
  		this.logger.fine( "Terminating machine '" + machineId + "'." );
  		cancelMachineConfigurator( machineId );
  		try {
  			AmazonEC2 ec2 = createEc2Client( parameters.getTargetProperties());
  			TerminateInstancesRequest terminateInstancesRequest = new TerminateInstancesRequest();
  			terminateInstancesRequest.withInstanceIds( machineId );
  			ec2.terminateInstances( terminateInstancesRequest );
  
  		} catch( Exception e ) {
  			this.logger.severe( "An error occurred while terminating a machine on Amazon EC2. " + e.getMessage());
  			throw new TargetException( e );
  		}
  	}
docs: /*
  (non-Javadoc)
  @see net.roboconf.target.api.TargetHandler
  #terminateMachine(net.roboconf.target.api.TargetHandlerParameters, java.lang.String)