terminate on closing fd(0). added message to force close