Adding end
Exception logging