Updated io.coffee to ensure cleanup