playing sound on error when invoking a method