TODO: complete resource cleaning