use the pidfile_context context manager
Merge branch 'daemon-context'