Just add self.close() to your href attribute.

Code:
<a href="javascript:refreshparent(...);self.close()">close me </a>