exit when STDIN is closed
clean up some redundant code that called closecb, which is now called automatically inside close()
Merge branch 'master' of github.com:JuliaLang/julia