don't crash on invalid post id
cleanups