[#882] Add a PartialFlushException which will allow to notify the user that the flush/write was only partial succesful