Implemented 'Close' feature.