move exit to arch specific call