Add
Code:
if ( !is_user_alive(victim) ) return
just after line 110, will fix both problems.
Should add is_user_alive check line 92 also to avoid using magneto against dead clients.
-moving to bug reports. Please reply if any further issues after fix above.