[mms-lib] Gracefully fail on error to create temporary file or directory