* Added a method to unregister a header in the window manager in case of error