fix bug in call to abort_custom, remove more debug