Random note
Implemented close handler