This line should be:
```python
def stop(logfile, errfile):
```