Prints the error's stacktrace on connection closed on error.
Updates smack lib with replacing all console prints with java.logging one.