SampObjectManager: When creating an object fails, an exception is thrown.

Signed-off-by: mk124 <mk124a@gmail.com>