release pidfile at exit