Added scheduled task cleanup when shutting down registration handler.
Fixed invalid credentials warning logging.