Add a new rule 5.10 that states exactly what you want.
Quote:Transports and freighters that dock during combat are exempt from the timeout period specified in 5.7, but are still bound by the re-engagment restrictions in 5.8.
That lets smugglers and pirates keep their winnings, but prevents them from jumping in and out. It also prevents players from coming back with their battleships.