Adding connection close after reading data. Fixes #5