Added more exceptions and restart on unhandled exceptions. Log metrics