Fixed Lint warnings about non-static handlers; made sure receiver is always unregistered