Cleanup, using fml events instead of shutdown hook