fix for issue 4543 - fcgi error stack not cleaning

Fix for https://github.com/mapserver/mapserver/issues/4543