Make sure pages are unpublished before delete

Fixes #570
Log page deletions