== 1. A file opened in a constructor and never closed (profile 'leaky'), checkpoint at start-up
java exit code: 1
 WARN 11231 --- [crac-demo] [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Failed to take CRaC checkpoint on refresh
ERROR 11231 --- [crac-demo] [           main] o.s.boot.SpringApplication               : Application run failed
org.springframework.context.ApplicationContextException: Failed to take CRaC checkpoint on refresh
Caused by: org.crac.CheckpointException
	Suppressed: jdk.internal.crac.mirror.impl.CheckpointOpenFileException: <work>/audit.log
checkpoint directory exists: no

== 2. The same mistake, checkpoint requested later with jcmd JDK.checkpoint
11275:
An exception during a checkpoint operation:
jdk.internal.crac.mirror.CheckpointException
	Suppressed: jdk.internal.crac.mirror.impl.CheckpointOpenFileException: <work>/audit.log
		at java.base/jdk.internal.crac.JDKFileResource.lambda$beforeCheckpoint$0(JDKFileResource.java:134)
		at java.base/jdk.internal.crac.mirror.Core.checkpointRestore1(Core.java:195)
		at java.base/jdk.internal.crac.mirror.Core.checkpointRestore(Core.java:291)
		at java.base/jdk.internal.crac.mirror.Core.checkpointRestoreInternal(Core.java:327)
application still running and answering: pong
