Change return type of internalCloseTrade from bool to void