Do not manage signal handler when the message has been destroyed

This bug happens because we must disconnect signal handler before releasing
the message, if not, the signal handler is called.

Change-Id: I4582444d0bcdf56293e0611b698e7aeac56903ba