Implement filesystem services, and the required kernel objects.

Is it done upon application shutdown or emulation shutdown, though? In other words, is there remotely a chance that this resource management code will cause any problems once the emulation core can be restarted properly?