added logs if exception occured