launch and quit applications