Wondering why this always exits with -1

App.config updated, thanks Jeroen!