Added vauge cleanup code.
Supports closing clients now.