Add minitest to run the tests on 1.8 properly
Fix warning
Ignore errors while uncorking the socket (it might already be closed)