Cosmic ray transport near the heliopause