fix(PowerSpy): add timeout for closing connections

There was a problem by using the jar created by sbt-native-packager. When using CTRL + C, the Bluecove's stack is stopped just after, before the close methods are called on the input/output/connection. The close methods was blocking.