Close reader function
Some code reorder
Notifycation to wake-up a lient will be do from reader
fixed compilations issues
fixed