Engine: ensure all pipes are properly closed by Receiver and Sender