fixed #13 - transform hanging in case of error