Closed some resources