stop package installation if interrupted

... during the running of an example in a subprocess