use sync unlink for pid file

... we can't have async operations in exit event handlers.

Right ?