added port warning. Added exception logging with time stamp.