Move require statement of Terminal to termapp/application
Make sure the termination of `term` in Applicaiton#run