[Java] Stop processing net before we stop the background processor