[#882] Add a PartialFlushException which will allow to notify the user t...

...hat the flush/write was only partial succesful