use a shutdown function instead of the kernel.terminate event listener to cleanup even in case of a fatal error
moved SerializableFileTest class to its destined folder