exit and looper module

add two class: AtExitManager and Looper