ya ur right,but the thread in which we r compiling is killing not only that thread but also the main thread also.
here after compiling it is returning to the command prompt.(no further execution)