Updated doc and capturing system interrupt to close the connections