Removed old trigger_error() calls, closes #2335
Properly close inventory windows from Players
Catch exceptions when chunks are unloaded
Possible fix for #2267, #2314