After defeating Jessie and James, the duo run away, and you're free to finally exit Mt. Moon, simply head up the series of ladders to exit and Continue on to Route 4.