automatic subprocess cleanup in matlab wrapper