janitoring: Cleaned up dead code, error handling

* Removed dead code

* Better handling of errors that happen in notetxt

Signed-off-by: mr.Shu <mr@shu.io>