some refactoring from ProductKing class to Utils class!

Added CustomException handler, with uploading to server log directory!