kill all pid given by default
basic error handling