Changed fetching unread to be synchronous and clean up the process