Do close and promte before retrieving activity logs. This ensures new activity log entries to be genrated