changed plugin closing semantics, also added close button, closes #10