Catch pending write exception