Exception on closing pipe form

Issue #720