IMF has a good reputation of lagging the hell out of computers, including mine, as well as the SL IMF.
I suspect a few things that causes this problem of yours:
1. Not enough RAM/memory dedicated to graphics/gaming
2. Your CPU not being able to handle the CPU heavy floors such as drops/loots, missiles and their explosion, electric traps etc.
3. Your Java is outdated (most unlikely)
Also, when a game closes with no connection error or no crash error message; it means that the computer had to force close the game to prevent the computer itself from crashing.
The reason your computer was able to handle RT, through your friend's invite, was because all the ememies/script-based battles were already killed/completed and therefore your computer didnt have to expend CPU power to sustain them.
Also, RJP doesnt really lag any decent computer much. Also, im assuming, by the information that you have given, that you're not T3 yet and that you havent experience the FSC lag. If your computer cant even handle IMF's lag, then FSC will probably break your game.
(tl;dr) Its time for you to get a new computer.