Update inbound event clearing logic

 - Clear acknowledgment events after processing at AckHandler
 - Clear all events after StateEventHandler processing is done