Empty the pipes before restarting services