fixed issue in image magik extract where no colors would be returned if stdout.close fired after exit