Improved SMPP terminated message handling