+ fixed unit test of ALT
+ close graph on JVM shutdown to avoid corrupted data