Pressing hardware reset when the debugger is running will cause the target to be disconnected because all the registers, stack pointer, program pointer etc. get reset. If you want the debugging session to restart please click on the symbol as shown below:
For the application to run, pressing the reset is not necessary after programming. It automatically runs once programming is done.