Fix require_relative. Close pipe ends.