- closed some resources that were left open