added 'closed unexpectedly' error