Closing not needed resources