End the notepad TP. Code is a little bit shitty (can easily be improved).