Make temp file creation exception safe
!4681 (closed) makes openFile and such async exception safe on POSIX. It does not, however, do anything about openTempFile and friends. These need to be fixed up too. There's an awful lot of duplication between this and the openFile stuff, so ideally that would be removed in the process.