Cleanup file-related routines. See: websharks/s2member#179