Cleaning up notifications handling.