Minor exceptions handling refactor for better logging
Log same error as returned by jersey
Fixed exception when there is no last data