Fixing error with when attempting to catch sigwinch errors