Attempting to handle bad subprocess exits