Fix restart handler in PostgreSQL extensions tasks.