Added details for new file every day..also handling exception caused due to hanging device..