issue: 425607 releasing msgs to pool in case of discard only once the msg error event is received

Change-Id: I47e5e0860667d6db76c9c5bead1094120161d083