Increase timeout
Added try except block for catch any exceptions which can crash
entitymanager
Remove trash