fixed stackdump at end of megatest (was doing http close all connections even if using rpc transport)