Added close channel to end of naive prime generator