It's probably best to create and shutdown the kernel in `preprocess`, e.g.:

```python
def preprocess(self, nb, resources):
    create_client()
    nb, resources = super(ExecutePreprocessor, self).preprocess(nb, resources)
    shutdown_client()
    return nb, resources