Edit test to cause the bug
Fix typo in test

by replacing binary.writte call with binary.Write
Make NSCAServer.Close() idempotent

since it might be called twice and is otherwise designed to be
idempotent.
Merge pull request #2 from Jimdo/encryption_fails

Edit test to cause the bug
Merge pull request #3 from nightlyone/make_close_idempotent

Make close idempotent