Remove some log statements; properly write pid to file; add handler for task_revoked