Added the logic to close all views on logout

There are a bug with non-firing events which causes views not to close
as desired. Currently investigating on this.