handle case when com.interrupt is already closed
Merge loops in CommunicateTxCurve

Save some time in bigger sized blocks. Tested on both hard and soft
limit of blockmaxsize. Also use hard limit of blockmaxsize to mine
blocks.