Automatically terminate when finished, make application a background agent