Error handling in trigger function
Version bump (Release 1.3.7)