There are some issues where I haven't tracked down the cause. It seems to be that mozrepl sends more output than expected in some situations. There is discussion on the bugtracker, and a likely approach will be to write what mozrepl calls a "custom interactor".