Fix players being able to take items out when an exception occurs
Fix the iterator causing an exception
Fix incompatibility with other entity plugins to a certain extent