It is working. You haven't given it any reason to keep the command window open, so it doesn't. There are threads on this every week or so. Try running it from the command line or putting a breakpoint before your return.