make st-flash clean up on sigint/term/segv, make gdb-server clean up on sigsegv.