added close value. fixed indenting for TextMate. Added exception catch for server to close pin