Fix tempfile "leak".

Fix a leak of tempfiles from the C2PAP module which would fail to delete
temporary files it created if an exception was raised.