Added try catch statement inside the create() method to rollback changes if error occurs during comment insert in models/thread.php.