throw exception in case of subprocess call failure